/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
 */

package pl.droidsonroids.gif.utils;

/**
 * 功能描述
 *
 * @author B71789
 * @since 2020-06-29
 */
public interface RectFloatInterface {
    /**
     * intersect
     *
     * @param left left
     * @param top top
     * @param right right
     * @param bottom bottom
     * @return boolean
     */
    boolean intersect(float left, float top, float right, float bottom);

    /**
     * intersect
     *
     * @param rect rect
     * @return boolean
     */
    boolean intersect(RectFloatHarmony rect);

    /**
     * union
     *
     * @param left left
     * @param top top
     * @param right right
     * @param bottom bottom
     */
    void union(float left, float top, float right, float bottom);

    /**
     * union
     *
     * @param rect rect
     */
    void union(RectFloatHarmony rect);

    /**
     * set
     *
     * @param left left
     * @param top top
     * @param right right
     * @param bottom bottom
     */
    void set(float left, float top, float right, float bottom);

    /**
     * isEmpty
     *
     * @return boolean
     */
    boolean isEmpty();
}
